package com.example.demo.example.immutable;

import com.google.common.collect.Maps;

import java.util.Collections;
import java.util.Map;

public class ImmutableExample {

    public static final String finalString = "a";
    public static final Map<Integer, Integer> finalMap = Collections.unmodifiableMap(Maps.newHashMap());

    public static void main(String[] args) {
//        finalString = "b";
        finalMap.put(1,2);
        System.out.println(finalMap);

    }
}
